

const state = {
    data: [],
    pageTotal: 0,
    query: {
        show: false,
        checked: false,
        pageIndex: 1,
        pageSize: 10,
        id: '',
        name: '',
        namePinyinFull: '',
        type: '',
        area: '',
        status: ''
    },
    form: {}
}

const mutations = {
    SET_QUKUARTIST_DATA: (state, data) => {
        state.data = data
    },
    SET_QUKUARTIST_PAGETOTAL: (state, pageTotal) => {
        state.pageTotal = pageTotal
    },
    SET_QUKUARTIST_QUERY: (state, query) => {
        state.query = query
    },
    SET_QUKUARTIST_FORM: (state, form) => {
        state.form = form
    },

}


// ajax异步请求要么放在组件发 要么 放在actions发
// 这里是放在组件发
const actions = {
    setQukuArtistData({ commit }, data) {

    }
    // ...
}

export default {
    state,
    mutations,
    actions
}